package com.skyable.common.utils;

import org.springframework.core.io.support.PropertiesLoaderUtils;

import java.io.IOException;

/**
 * @author GaoYuan
 * @date 2019/11/9 10:12
 * @desc 读取配置文件内容工具类
 */
public class PropertiesUtil {

    public static String getValue(String fileName,String key) throws IOException {
        return PropertiesLoaderUtils.loadAllProperties(fileName).getProperty(key);
    }

}
